<?php $this->load->module('index/index/head', $params); ?>
<div class="header_banner">
    <?php
    $TAB_PIC = <<<TEMPLATE
{listinfo}
<a href="{link}"><img src="{pic}" alt="{title}"></a>
{/listinfo}
TEMPLATE;
    ?>
    <?php diy('bai_trips_1', 'imagelist', $TAB_PIC); ?>
</div>

<div class="content">
    <div class="gonglve_remen">
        <?php
        $TAB_PIC = <<<TEMPLATE
<div class="gonglve_remen_title">{title}</div>
<div class="gonglve_remen_list">
{listinfo}
<div class="gonglve_remen_list_part">
    <div class="gonglve_remen_list_detail"><p><a href="{link}">{title}</a></p><span>{sub_title}</span></div>
    <div class="gonglve_remen_list_img"><img src="{pic}" /></div>
</div>
{/listinfo}
        </div>
    </div>
TEMPLATE;
        ?>
        <?php diy('bai_trips_2', 'imagelist', $TAB_PIC); ?>
        <div class="gonglve_quanbu">
            <div class="gonglve_quanbu_title">
                全部攻略
            </div>
            <div class="gonglve_quanbu_fuxuan"  id="here" name="here">
                <div class="gonglve_quanbu_fuxuan_xuan">
                    <div class="gonglve_quanbu_fuxuan_xuanleft">按省份:</div>
                    <div class="gonglve_quanbu_fuxuan_xuanright">
                        <ul>
                            <?php
                            $url = '';
                            if($category=='0'&&$extra=='0'){
                                $url = site_url('/gonglve').'#here';
                            }else{
                                $url = site_url('/gonglve/list_0_0_'.$category.'_'.$extra).'#here';
                            }
                            ?>
                        <li><a <?php if($province==0): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo $url;?>">不限</a></li>
                        <li><a <?php if($province==1600): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1600_0_'.$category.'_'.$extra).'#here'?>">江苏</a></li>
                        <li><a <?php if($province==2500): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2500_0_'.$category.'_'.$extra).'#here'?>">上海</a></li>
                        <li><a <?php if($province==3400): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_3400_0_'.$category.'_'.$extra).'#here'?>">浙江</a></li>
                        <li><a <?php if($province==900): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_900_0_0_'.$extra).'#here'?>">海南</a></li>
                        <li><a <?php if($province==3300): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_3300_0_'.$category.'_'.$extra).'#here'?>">云南</a></li>
                        <li><a <?php if($province==200): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_200_0_'.$category.'_'.$extra).'#here'?>">北京</a></li>
                        <li><a <?php if($province==400): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_400_0_'.$category.'_'.$extra).'#here'?>">福建</a></li>
                        <li><a <?php if($province==2400): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2400_0_'.$category.'_'.$extra).'#here'?>">山东</a></li>
                        <li><a <?php if($province==100): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_100_0_'.$category.'_'.$extra).'#here'?>">安徽</a></li>
                        <li><a <?php if($province==3000): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_3000_0_'.$category.'_'.$extra).'#here'?>">天津</a></li>
                        <li><a <?php if($province==1000): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1000_0_'.$category.'_'.$extra).'#here'?>">河北</a></li>
                        <li><a <?php if($province==2600): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2600_0_'.$category.'_'.$extra).'#here'?>">山西</a></li>
                        <li><a <?php if($province==2100): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2100_0_'.$category.'_'.$extra).'#here'?>">内蒙古</a></li>
                        <li><a <?php if($province==2700): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2700_0_'.$category.'_'.$extra).'#here'?>">陕西</a></li>
                        <li><a <?php if($province==3100): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_3100_0_'.$category.'_'.$extra).'#here'?>">新疆</a></li>
                        <li><a <?php if($province==2300): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2300_0_'.$category.'_'.$extra).'#here'?>">青海</a></li>
                        <li><a <?php if($province==500): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_500_0_'.$category.'_'.$extra).'#here'?>">甘肃</a></li>
                        <li><a <?php if($province==2200): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2200_0_'.$category.'_'.$extra).'#here'?>">宁夏</a></li>
                        <li><a <?php if($province==600): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_600_0_'.$category.'_'.$extra).'#here'?>">广东</a></li>
                        <li><a <?php if($province==700): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_700_0_'.$category.'_'.$extra).'#here'?>">广西</a></li>
                        <li><a <?php if($province==1900): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1900_0_'.$category.'_'.$extra).'#here'?>">辽宁</a></li>
                        <li><a <?php if($province==1800): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1800_0_'.$category.'_'.$extra).'#here'?>">吉林</a></li>
                        <li><a <?php if($province==1100): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1100_0_'.$category.'_'.$extra).'#here'?>">黑龙江</a></li>
                        <li><a <?php if($province==1400): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1400_0_'.$category.'_'.$extra).'#here'?>">湖北</a></li>
                        <li><a <?php if($province==1500): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1500_0_'.$category.'_'.$extra).'#here'?>">湖南</a></li>
                        <li><a <?php if($province==1700): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1700_0_'.$category.'_'.$extra).'#here'?>">江西</a></li>
                        <li><a <?php if($province==1200): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1200_0_'.$category.'_'.$extra).'#here'?>">河南</a></li>
                        <li><a <?php if($province==300): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_300_0_'.$category.'_'.$extra).'#here'?>">重庆</a></li>
                        <li><a <?php if($province==2800): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2800_0_'.$category.'_'.$extra).'#here'?>">四川</a></li>
                        <li><a <?php if($province==800): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_800_0_'.$category.'_'.$extra).'#here'?>">贵州</a></li>
                        <li><a <?php if($province==3200): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_3200_0_'.$category.'_'.$extra).'#here'?>">西藏</a></li>
                        <li><a <?php if($province==1300): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_1300_0_'.$category.'_'.$extra).'#here'?>">香港</a></li>
                        <li><a <?php if($province==2900): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2900_0_'.$category.'_'.$extra).'#here'?>">台湾</a></li>
                        <li><a <?php if($province==2002): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_2002_0_'.$category.'_'.$extra).'#here'?>">澳门</a></li>
                        <li><a <?php if($province==3900): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_3900_0_'.$category.'_'.$extra).'#here'?>">亚洲</a></li>
                        <li><a <?php if($province==3600): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_3600_0_'.$category.'_'.$extra).'#here'?>">欧洲</a></li>
                        <li><a <?php if($province==3700): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_3700_0_'.$category.'_'.$extra).'#here'?>">北美洲</a></li>
                        <li><a <?php if($province==4100): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_4100_0_'.$category.'_'.$extra).'#here'?>">大洋洲</a></li>
                        </ul>
                    </div>
                </div>
                <div class="gonglve_quanbu_fuxuan_xuan">
                    <div class="gonglve_quanbu_fuxuan_xuanleft">按城市:</div>
                    <div class="gonglve_quanbu_fuxuan_xuanright">
                        <ul>
                            <li><a <?php if($city==0): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="
                              <?php
                            if($province=='0'&&$category=='0'&&$extra=='0'){
                                echo site_url('/gonglve').'#here';
                            }
                            else
                            {
                                echo site_url('/gonglve/list_'.$province.'_0_'.$category.'_'.$extra).'#here';
                            }
                            ?>">不限</a></li>
                            <?php foreach ($city_list as $v):?>
                                <?php  if($v['id'] == 40002)  continue; ?>
                            <li><a <?php if($city==$v['id']): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_'.$province.'_'.$v['id'].'_'.$category.'_'.$extra).'#here'?>"><?php echo $v['name']?></a></li>
                            <?php endforeach; ?>

                        </ul>
                    </div>
                </div>
                <div class="gonglve_quanbu_fuxuan_xuan">
                    <div class="gonglve_quanbu_fuxuan_xuanleft">按分类:</div>
                    <div class="gonglve_quanbu_fuxuan_xuanright">
                        <ul>
                            <li><a <?php if($category==0): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="
                              <?php
                            if($province=='0'&&$extra=='0'){
                                echo site_url('/gonglve').'#here';
                            }
                            else
                            {
                                echo site_url('/gonglve/list_'.$province.'_'.$city.'_0_'.$extra).'#here';
                            }
                            ?>">不限</a></li>
                            <?php foreach ($categories_list as $v):?>
                            <li><a <?php if($category==$v['id']): ?>class="xuanright_on"<?php else: ?><?php endif ;?>  href="<?php echo site_url('/gonglve/list_'.$province.'_'.$city.'_'.$v['id'].'_'.$extra).'#here'?>"><?php echo $v['name']?></a></li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="gonglve_quanbu_list">
                <?php foreach ($trips_list as $v): ?>
                    <div class="gonglve_quanbu_list_part">
                        <div class="gonglve_quanbu_list_part_img"><img src="<?php echo $v['file_url']; ?>"/>
                            <div class="gonglue_wenzhang" style="top:323px">
                                <div class="gonglue_wenzhang_title"><?php echo $v['subject']; ?></div>
                                <div class="gonglue_wenzhang_zuozhe">
                                    <span>作者：<?php echo $v['author']; ?></span><span><?php echo date('Y-m-d', $v['crts']); ?></span>
                                </div>
                                <div
                                    class="gonglue_wenzhang_detail"><?php echo sub_str($v['abstract'], 1, 140); ?></div>
                            </div>
                        </div>

                        <div class="gonglve_quanbu_list_part_detail">
                            <div class="gonglve_quanbu_list_part_detail_title"><a
                                    href="<?php echo $v['data_uri']; ?>"><?php echo $v['subject']; ?></a></div>
                            <div class="gonglve_quanbu_list_part_detail_riqi"><?php echo date('Y/m/d', $v['crts']); ?></div>
                        </div>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
        <!-- 页码-->
        <div class="sale-main-bottom">
            <div class="page_nav">
                <?php echo $this->mypageclass->show(2); ?>
            </div>
        </div>
        <div class="gonglve_tuijian">
            <div class="gonglve_tuijian_title">推荐行程</div>
            <div class="gonglve_tuijian_list">
                <?php
                $TEMPLATE = <<<HTML
<ul>
{linelist}
<li>
    <div class="item8-left-container_gl">
        <a href="{link}"><img src="{line_thumb}" /></a>
        <p><a href="{link}">{line_name}</a> </p>
        <p class="gl_jiage">{dollar}{low_price}<small>{dollarend}</small></p>
    </div>
</li>
{/linelist}
</ul>
HTML;
                diy('gonglve_line_01', 'linelist', $TEMPLATE);
                ?>
            </div>
        </div>
    </div>


    <?php $this->load->module('index/index/foot'); ?>
    <script type="text/javascript">
        $(function () {
            $('.btn_submit').click(function () {
                var fkw = $('input[name="search_keywords"]');//alert(fkw.val());return false;
                var url = '<?php echo site_url('/gonglve/list_0_0_' . $category . '_0_');?>';
//        if(fkw.val() != ''){
                window.location.href = url + encodeURIComponent(fkw.val());
//        }else{
//            fkw.focus();
//        }
                return false;
            });
            $('.gonglve_quanbu_list_part').mouseenter(function(){
                $(this).find('.gonglue_wenzhang').stop().animate({top:0},'normal', 'swing');
            }).mouseleave(function(){
                $(this).find('.gonglue_wenzhang').stop().animate({top:'323px'},'normal', 'swing');
            });
        });
    </script>

